<?php


//if($_GET['app'] != 'qrcode' || $_GET['act'] != 'download'){
//    header("Location:". $_SERVER['HTTPS'].'/main/index_h5.html' );
//    return;
//}
/* 应用根目录 */
define('APP_ROOT', dirname(__FILE__));          //该常量只在后台使用
define('ROOT_PATH', dirname(APP_ROOT));   //该常量是ECCore要求的
define('IN_MOBILE', true);
include_once(ROOT_PATH . '/eccore/ecmall.php');

/* 定义配置信息 */
ecm_define(ROOT_PATH . '/data/config.inc.php');

if($_GET['app'] == '' || $_GET['app'] == 'index'){
    header("Location:". '../main/index_h5.html' );
    return;
}

/* 启动ECMall */
ECMall::startup(array(
    'default_app'   =>  'default',
    'default_act'   =>  'index',
    'app_root'      =>  APP_ROOT . '/app',
    'external_libs' =>  array(
        ROOT_PATH . '/includes/global.lib.php',
        ROOT_PATH . '/includes/libraries/time.lib.php',
        ROOT_PATH . '/includes/ecapp.base.php',
        ROOT_PATH . '/includes/plugin.base.php',
        APP_ROOT . '/app/frontend.base.php',
    ),
));
?>